import request from '@/utils/request'

export const add = function(params){
  return request({
    url: '/file_type/add',
    method: 'post',
    data: params,
  })
}

export const list = function(params){
  return request({
    url: '/file_type/list',
    method: 'get',
    params: params,
  })
}


export const editGet = function(params){
  return request({
    url: '/file_type/edit',
    method: 'get',
    params: params,
  })
}

export const editPost = function(params){
  return request({
    url: '/file_type/edit',
    method: 'post',
    data: params,
  })
}

export const del = function(params){
  return request({
    url: '/file_type/del',
    method: 'post',
    data: params,
  })
}
export const log = function(params){
  return request({
    url: '/file_type/log',
    method: 'get',
    params: params,
  })
}

export const fileTypeList = function(params){
  return request({
    url: '/file_type/file_type_list',
    method: 'get',
    params: params,
  })
}

export const allFileTypeList = function(params){
  return request({
    url: '/file_type/all_file_type_list',
    method: 'get',
    params: params,
  })
}

